Class yassl.setqnode
All Packages    This Package    Previous    Next

Class yassl.setqnode

java.lang.Object
   |
   +----yassl.pnode
           |
           +----yassl.unarynode
                   |
                   +----yassl.binarynode
                           |
                           +----yassl.setqnode

public class setqnode
extends binarynode
This node is an equivalent for the setq functionality. It defines a new variable in the current environment, returning an error if it already exists.

Constructor Index

 o setqnode(String, pnode, pnode)

Method Index

 o eval(Env)
For setq nodes, eval'ling actually adds a new variable in the environment (functionality the same as the Scheme define)
 o wiggle()
Operator precedence for binary nodes works by making sure the operator at the node has no greater precedence than its left child.

Constructors

 o setqnode
  public setqnode(String vtype,
                  pnode varval,
                  pnode initval)

Methods

 o wiggle
  public pnode wiggle()
Operator precedence for binary nodes works by making sure the operator at the node has no greater precedence than its left child.
Overrides:
wiggle in class binarynode

 o eval

  public pnode eval(Env e) throws yasslError
For setq nodes, eval'ling actually adds a new variable in the environment (functionality the same as the Scheme define)
Overrides:
eval in class pnode


All Packages    This Package    Previous    Next